﻿using CommonInitializer;
using Microsoft.EntityFrameworkCore.Design;

namespace FaceService.Infrastructure.Context;

public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<FaceDbContext>
{
    public FaceDbContext CreateDbContext(string[] args)
    {
        var optionsBuilder = DbContextOptionsBuilderFactory.Create<FaceDbContext>();
        return new FaceDbContext(optionsBuilder.Options, null);
    }
}